import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

// 全局样式
import "@/styles/index.less";

// px2rem 自适应
import "lib-flexible";

// 配置Redux
import { Provider } from "react-redux";
import store from "@/store/index";

/* ANTD-MOBILE */
import { ConfigProvider } from "antd-mobile";
import zhCN from "antd-mobile/es/locales/zh-CN";
import { ConfigProvider } from "antd-mobile";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <>
    {/* antd-mobile配置 */}
    <ConfigProvider locale={zhCN}>
      {/*  配置redux 上下文对象 */}
      <Provider store={store}>
        <App />
      </Provider>
    </ConfigProvider>
  </>
);
